package com.leanin.form.mapper;

import com.leanin.form.model.EduFormVO;
import com.leanin.form.model.LeaninEduForm;
import com.leanin.form.model.request.FormQueryDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LeaninEduFormMapper {
    int deleteByPrimaryKey(Long id);

    int insert(LeaninEduForm record);

    int insertSelective(LeaninEduForm record);

    LeaninEduForm selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(LeaninEduForm record);

    int updateByPrimaryKeyWithBLOBs(LeaninEduForm record);

    int updateByPrimaryKey(LeaninEduForm record);

    List<LeaninEduForm> selectByFormName(@Param("formName") String formName);

    List<EduFormVO> findByParam(@Param("formQueryDTO") FormQueryDTO formQueryDTO);

    EduFormVO findById(@Param("formId") Long formId);

    List<LeaninEduForm> findByAdvice(@Param("advice") String advice);

    List<LeaninEduForm> findByAdviceList(@Param("adviceList") String[] adviceList);
}